package com.zhanghe.mall.pojo;

import com.zhanghe.mall.pojo.common.BasePojo;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * ClassficationAttribute
 *  分类属性表
 * @author Clevo
 * @date 2018/7/18
 */
@Entity
@Table(name = "classification_attribute")
public class ClassificationAttribute extends BasePojo {

    @ManyToOne
    @JoinColumn(name = "classification_id")
    private CommodityClassification commodityClassification;

    public String name;

    public Integer sort;

    public Integer type;

    public CommodityClassification getCommodityClassification() {
        return commodityClassification;
    }

    public void setCommodityClassification(CommodityClassification commodityClassification) {
        this.commodityClassification = commodityClassification;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }
}
